JavaScript: How to get all object values of an object without iterator